Hacker News - Get Random Top Story
(16 actions, 10 KB)
0 Comment
https://github.com/HackerNews/API?tab=readme-ov-file#new-top-and-best-stories
1 Get Contents of URL
https://hacker-news.firebaseio.com/v0/topstories.json
»
2 Get
Random Item
from List
[1 Contents of URL]
»
4
3 Comment
https://github.com/HackerNews/API?tab=readme-ov-file#items
4 Get Contents of URL
https://hacker-news.firebaseio.com/v0/item/
[2 Item from List]
.json
»
5
7
9
5 Get Dictionary Value for
type
in
[4 Contents of URL]
»
6 If
[5 Dictionary Value
’s Name
]
is
ConditionalActionString
story
Measurement
"" MB
7 Get Dictionary Value for
score
in
[4 Contents of URL]
»
8 If
[7 Dictionary Value
as Number
]
>
300
9 Stop and Output
[4 Contents of URL]
10 Otherwise
11 Run Shortcut
Hacker News - Get Random Top Story
Workflow
:
{ "workflowIdentifier": "FD1D165A-BB3D-4BED-896C-6C46DA3F7CE2", "workflowName": "Hacker News - Get Random Top Story", "isSelf": true }
12 End If
13 Otherwise ▵
6
14 Run Shortcut
Hacker News - Get Random Top Story
Workflow
:
{ "workflowIdentifier": "FD1D165A-BB3D-4BED-896C-6C46DA3F7CE2", "workflowName": "Hacker News - Get Random Top Story", "isSelf": true }
15 End If